package homework26;

public class Dog extends Animal{
    public Dog(String name) {
        super(name);
    }

    @Override
    public String toString() {
        return "Dog{name='" + name + "'}";
    }

    public void watchHome() {
        System.out.println(name + "正在看家");
    }
}
